//
//  TSOrderTitleView.h
//  TSHomeFoodShop
//
//  Created by LYH on 2018/8/7.
//  Copyright © 2018年 Toocms. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol YHOrderTitleViewDelegate<NSObject>
-(void)didSelectItem:(NSInteger) index;
@end
@interface TSOrderTitleView : UIView

-(instancetype)initWithFrame:(CGRect)frame TitleArray:(NSArray *)titleArray CountOfLine:(NSInteger) countOfLine;
@property(nonatomic,weak,nullable)id <YHOrderTitleViewDelegate> delegate;

@property(nonatomic,assign)NSInteger selectIndex;
@property(nonatomic,strong)UICollectionView *collectionView;
-(void)scrollToSelectIndex;
@property (nonatomic, strong) CALayer *lineLayer;

@end
